package cn.appsys.service.back;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.appsys.dao.back.BackDao;
import cn.appsys.pojo.AppCategory;
import cn.appsys.pojo.AppInfo;
import cn.appsys.pojo.BackendUser;
import cn.appsys.pojo.DataDictionary;
@Service("Back_Service")
public class BackServiceImpl implements BackService{
	@Resource
	private BackDao backDao;
	//后台登录
	@Override
	public BackendUser login_back(String userCode) {
		
		return backDao.login_back(userCode);
	}
	//分页显示APP待审核查询列表
	@Override
	public List<AppInfo> queryAppPageInfo_back(String querySoftwareName, Integer queryFlatformId,
			Integer queryCategoryLevel1, Integer queryCategoryLevel2, Integer queryCategoryLevel3, Integer form,
			Integer pageSize) {
		// TODO Auto-generated method stub
		return backDao.queryAppPageInfo_back(querySoftwareName,  queryFlatformId, queryCategoryLevel1, queryCategoryLevel2, queryCategoryLevel3, form, pageSize);
	}
	//根据查询条件记录总数
	@Override
	public int queryCount(String querySoftwareName, Integer queryFlatformId,
			Integer queryCategoryLevel1, Integer queryCategoryLevel2, Integer queryCategoryLevel3) {
		// TODO Auto-generated method stub
		return backDao.queryCount(querySoftwareName, queryFlatformId, queryCategoryLevel1, queryCategoryLevel2, queryCategoryLevel3);
	}
	//所属平台
	@Override
	public List<DataDictionary> dataDictionaryList() {
		// TODO Auto-generated method stub
		return backDao.dataDictionaryList();
	}
	//一级分类
	@Override
	public List<AppCategory> AppCategoryList1() {
		// TODO Auto-generated method stub
		return backDao.AppCategoryList1();
	}
	//二级分类
	@Override
	public List<AppCategory> AppCategoryList2(Integer queryCategoryLevel2) {
		// TODO Auto-generated method stub
		return backDao.AppCategoryList2(queryCategoryLevel2);
	}
	//三级分类
	@Override
	public List<AppCategory> AppCategoryList3(Integer queryCategoryLevel3) {
		// TODO Auto-generated method stub
		return backDao.AppCategoryList3(queryCategoryLevel3);
	}
	//显示App基础信息内容
	@Override
	public AppInfo appCategoryShow(Integer id) {
		// TODO Auto-generated method stub
		return backDao.appCategoryShow(id);
	}
	@Override
	public int upStatus(AppInfo appInfo) {
		// TODO Auto-generated method stub
		return backDao.upStatus(appInfo);
	}

}
